package br.com.softway.clinica.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import br.com.softway.clinica.entity.Login;

public interface LoginRepository extends JpaRepository<Login, Integer> {

	@Query("FROM Login a WHERE a.username = :username AND a.password = :password")
	public Login find(@Param("username") String username,
			@Param("password") String password);
}
